package com.molin.conllectionTest;

import java.util.ArrayList;

public class Demo5 {
    //增强for
    public static void main(String[] args) {
        ArrayList<String> collection=new ArrayList<String>();
        collection.add("a");
        collection.add("b");
        collection.add("b");
        collection.add("c");
        collection.add("d");
        for (String s : collection) {
            System.out.println(s);
        }
    }
}
